package com.cxk.hr.service;

import java.util.List;

import com.cxk.hr.pojo.Department;

public interface DepartmentService {

	/**
	 * 根据DepartmentNumber查询信息
	 * 
	 * @param departmentNumber
	 * @return
	 */
	Department selectByNumber(Integer departmentNumber);

	/**
	 * 分页查询所有部门（倒序）
	 * 
	 * @param pageNo
	 * @return
	 */
	List<Department> selectListByPage(Integer pageNo, Integer pageSize);

	List<Department> selectList();

	Integer findCountDepartment();

	List<Department> findDepartmentByLimit(Integer currentPageNo, Integer pageSize);

	Integer addDepartment(Department department);

	Department findDepartmentById(Integer id);

	Integer updateDepartment(Department department);

	Integer deleteDepartment(Integer id);

}
